<template>
  <div class="slider-container">
    <el-row class="tac">
      <el-col :span="12">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          background-color="#283443"
          text-color="#fff"
          active-text-color="#ffd04b">
          <el-menu-item index="1" class="menu-container">
            <i class="el-icon-menu"></i>
            <span slot="title">导航二</span>
          </el-menu-item>
          <el-menu-item index="1" class="menu-container">
            <i class="el-icon-menu"></i>
            <span slot="title">导航二</span>
          </el-menu-item>
          <el-menu-item index="1" class="menu-container">
            <i class="el-icon-menu"></i>
            <span slot="title">导航二</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>

import { NAV } from '@/config/config' 
export default {
    name:'SideBar',
    data() {
        return {
            visible: true,
            menu:NAV
        }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
    
}
</script>

<style lang="scss" scoped>
  .slider-container{
    width: 200px;
    height: 100%;
    background-color: #283443;
  }
  .menu-container{
    width: 200px;
  }
  // .tac{
  //   width:400px;
  //   height: 100%;
  // }
</style>